all-in-parallel inputs search-patterns range-low range high &optional pos
all-in-parallel searches from a given list of inputs a given list of patterns in a given range at given position.
The following finds if there is are parallel patterns a b and a c in two inputs in range of +-10 transposition positions.
(def-neuron rules
(all-in-parallel '(1 2) '((a b) (a c)) -10 10) 'x
(otherwise '=)
)
(run-neuron 'rules
'(a b c d)
'(a c c e))
--> (x = x =)
Where? Here:
'(a b c d)
'(a c c e))
---
x
---
=
--- c d has same range as a b
x c e has same range as a c
---
=
This function is useful when you are writing fugue engines, which are recognising forms in multiple parallel instrument lines, and firing an output based on those.